<?php
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/style.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/color.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/public.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/duobao_detail.css";


$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/fastclick.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery-1.6.2.min.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery.timer.js";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/fanwe_utils/fanweUI.js";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";


$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/duobao_detail.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/duobao_detail.js";


?>

{include file="inc/header_title_home.html"}

<script type="text/javascript">
	//减少移动端触发"Click"事件时300毫秒的时间差
window.addEventListener('load', function() {
    FastClick.attach(document.body);
}, false);
var fair_check_link = "{$data.fair_check_link}";
</script>
<div class="wrap">
    <div class="content">
    	<div class="formula-wrap split-line">
		<div class="formula">
			<h1>计算公式</h1>
			<p>[(数值A+数值B)&divide;商品所需人次]取余数+100000001</p>
		</div>
		</div>
		<ul class="info-list">
			<li class="split-line">
				<h1>数值A</h1>
				<p>= 截止该商品开奖时间点前最后50条全站参与记录</p>
				<p class="open-box fr">展开<i class="iconfont">&#xe6c3;</i></p>
				<p class="close-box fr">收起<i class="iconfont">&#xe6c4;</i></p>
				<p>= <span>{$data.value_a}</span></p>	
			</li>
			<dl class="user-list">
				<dt class="split-line">				
				<p class="fl">夺宝时间</p>
				用户账号
				</dt>
				{foreach from=$data.duobao_item_log item=log}
				<dd class="split-line">
					<div class="txtbox">
					<time>{$log.create_time_format}</time> 
					 <span><i class="iconfont">&#xe6d4;</i>{$log.fair_sn_local}</span>
					 </div>
					 <p class="user-name">{$log.user_name}</p>
				</dd>
				{/foreach}
			</dl>
			<li class="split-line">
				<h1>数值B</h1>
				{if $data.fair_name}
				<p>= 最近一期{$data.fair_name}的开奖结果</p>
				<p>= 
				
				{if $data.value_b}
				<span>{$data.value_b}</span>		
				{else}
				<em>正在等待开奖...</em>
				{/if}		
			
				{if $data.value_b eq $data.default_value_b}
				开奖通讯失败，使用默认值{$data.default_value_b}
				{elseif $data.fair_period eq 000000}
				未获取到期号，使用默认值{$data.default_value_b}
				{else}
				(第{$data.fair_period}期<a {if $is_app}href="javascript:void(0);" onclick="app_open_url();" {else} href="{$data.fair_check_link}" {/if} class="check">开奖查询</a>
				{/if}
				</p>
				{else}
					{if $data.value_b}
					<span>{$data.value_b}</span>		
					{else}
					<em>正在等待开奖...</em>
					{/if}	
				{/if}
			</li>
			<div class="blank-line split-line"></div>
			<li class="split-line">
				<h1>计算结果</h1>
				{if $data.lottery_sn}
				<h2>幸运号码: <span>{$data.lottery_sn}</span></h2>
				{else}
				<h2>幸运号码: <em>等待揭晓...</em>
				{/if}
			</li>
		</ul>
    </div>
</div>
{include file="inc/footer_menu.html"}
{include file="inc/footer_index.html"}

